package com.demo.design.stractural.decorator.impl;

import com.demo.design.stractural.decorator.Component;

public class LowanDecorator extends Decorator{

    public LowanDecorator(Component component) {
        super(component);
    }

    @Override
    public void operate() {
        super.operate();
        addedFunction();
    }

    public void addedFunction() {
        System.err.println("你的替身最没用了Wryyyyyy");
        System.out.println("为具体构件角色增加额外的功能");
    }
}
